

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<title>登录 - 迅购网</title>

<%@ include file="../common/meta.jsp" %>
<%@ include file="../common/taglib.jsp" %>
<%@ include file="../common/bootstrap.jsp" %>
<script type="text/javascript">
	if(window.top.location.href.indexOf('loginPage.do')<0)
		window.top.location = ctx+"/global/loginPage.do"
</script>
<link href="css/common/reset.css" rel="stylesheet">
<link href="css/global/login.css" rel="stylesheet">
<script type="text/javascript" src="js/global/login.js"></script>
</head>
<body>
	<header></header>
	<section id="content">
		<section id="form">
			<div class="text-center" id="formhead">
				<h3 class="ui header">
					<i class="glyphicon glyphicon-user"></i> 用户登录
				</h3>
			</div>
			<form id="loginForm">
				<div class="form-group">
					<label for="name">账号</label>
					<input type="text" class="form-control" name="name" id="name" placeholder="请输入用户名或邮箱">
				</div>
				<div class="form-group">
					<label for="password">密码</label>
					<input type="password" class="form-control" name="password" id="password" placeholder="密码不少于6位">
				</div>
				<div class="form-group">
					<a href="/password/new" id="forgetPsw">忘记密码?</a>
					<a id="register" data-toggle="modal" data-target="#registerDialog">注册用户</a>
				</div>
				<button type="button" id="login" class="btn btn-primary btn-lg">登 录</button>
			</form>
		</section>
	</section>

	<!-- 注册用户 -->
	<div class="modal fade" id="registerDialog" tabindex="-1" role="dialog" aria-labelledby="registerLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h3 class="modal-title" id="registerLabel">
						<i class="glyphicon glyphicon-user"></i> 注册用户
					</h3>
				</div>
				<div class="modal-body">
					<iframe name="register" src="global/registerPage.do" width="100%" height="400px"></iframe>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
